<%--
  Created by IntelliJ IDEA.
  User: csnf-xs
  Date: 2024/12/12
  Time: 08:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="getStudentByName">
    <input type="text" name="queryName" placeholder="名称">
    <input type="submit">
</form>

<table border="1">
    <tr>
        <th>编号</th>
        <th>名称</th>
        <th>性别</th>
        <th>生日</th>
        <th>班级</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    <c:forEach var="user" items="${students}">
        <tr>
            <td>${user.id}</td>
            <td>${user.name}</td>
            <td>${user.gender}</td>
            <td>${user.birthday}</td>
            <td>${user.clazz}</td>
            <td>${user.state}</td>
            <td><a>编辑</a></td>
            <td><a>删除</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
